<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 15120
  Date: 2020/10/30
  Time: 20:05
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<form action="${pageContext.request.contextPath}/Product/Product_kucun">
    <select name="id">
        <option >请选择商品</option>
        <c:forEach var="c" items="${sessionScope.products}">
            <option   value="${c.id}">${c.productName}</option>
        </c:forEach>
    </select>
    <input type="submit"/>
    <c:if test="${kucun!=null}">
        <h1>当前商品库存为:${kucun}</h1>
    </c:if>
</form>
</body>
</html>
